li = [1,2,3,4,3,2,5,3,4,5,3,6,6]

dict = {}
def f():
    for i in li:
        dict[i] = dict.get(i,0)+1

f()
print(dict)